# based on nginx.service

[Unit]
Description=Webserver for Doskast board
After=syslog.target network.target remote-fs.target nss-lookup.target

[Service]
Type=forking
PIDFile=/run/doskast-nginx.pid
ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/doskast-nginx.conf
ExecStart=/usr/sbin/nginx -c /etc/nginx/doskast-nginx.conf
ExecReload=/usr/sbin/nginx -c /etc/nginx/doskast-nginx.conf -s reload
ExecStop=/usr/sbin/nginx -s quit

[Install]
WantedBy=multi-user.target
